package com.amigo.online.provider.compare.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.amigo.online.provider.common.entity.UserMysqlInfo;
import com.amigo.online.provider.compare.mapper.UserComparisonMapper;
import com.amigo.online.provider.compare.service.UserComparisonService;

@Service
public class UserComparisonServiceImpl implements UserComparisonService {

    @Autowired
    UserComparisonMapper userComparisonMapper;

    @Override
    public int getMaxId() {
        return userComparisonMapper.getMaxId();
    }

    @Override
    public List<UserMysqlInfo> listUserInfoWithNumber(int randomComparsionNumber) {
        return userComparisonMapper.listUserInfoWithNumber(randomComparsionNumber);
    }

}
